(function () {
    'use strict';
    var global$7 = tinymce.util.Tools.resolve('tinymce.PluginManager');
    var getHref = function (elm) {
        var href = elm.getAttribute('data-mce-href');
        return href ? href : elm.getAttribute('href');
    };
    var setupMenuItems = function (editor) {
        editor.ui.registry.addMenuItem('componentType', {
            text: 'componentType',
            icon: 'new-tab',
            onAction: function (){
                var tdObject = editor.dom.getParent(editor.selection.getStart(), "td");
                editor.execCallback('updateComponentType', editor,tdObject);
                editor.undoManager.add();
            }
        });
    };
    var setupContextMenu = function (editor) {
        var inLink = 'componentType';
        editor.ui.registry.addContextMenu('componentType', {
            update: function (element) {
                return "componentType";
            }
        });
    };
    function Plugin () {
        global$7.add('componentType', function (editor) {
            setupMenuItems(editor);
            setupContextMenu(editor);
        });
    }

    Plugin();
}());